import React from 'react';
import {Switch, Route, Redirect} from 'react-router-dom'
import Login from "./containers/login/login_container.js"
import Admin from "./containers/admin/admin_container.js";

export default class App extends React.Component{
  render() {
    return <Switch>
      <Route path="/login" component={Login}/>
      <Route path="/admin" component={Admin}/>
      <Redirect to="/admin"/>
    </Switch>
  }
};
